package com.hyacinth.forumbite.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Schema(description = "帖子回复实体类")
@Accessors(chain = true)
public class ArticleReply {
    @Schema(description = "id")
    private Long id;

    @Schema(description = "关联帖子id")
    private Long articleId;

    @Schema(description = "楼主用户id")
    private Long postUserId;

    @Schema(description = "关联回复id")
    private Long replyId;

    @Schema(description = "楼主下的回复用户id")
    private Long replyUserId;

    @Schema(description = "回贴内容")
    private String content;

    @Schema(description = "点赞数量")
    private Integer likeCount;

    @Schema(description = "状态 0正常,1禁用")
    private Byte state;

    @Schema(description = "是否删除 0否,1是")
    private Byte deleteState;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "关联发送者User")
    private User user;
}